import font css

54

@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
       url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
}
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
/*Use that for importing font via link*/
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
body {
  font-family: 'MyWebFont', Fallback, sans-serif;
}

Comments

Submit
0 Comments